package com.psool.service;

import act.controller.annotation.UrlContext;
import act.inject.DefaultValue;
import act.util.Async;
import com.psool.entity.WeiBo;
import org.osgl.mvc.annotation.GetAction;

import javax.inject.Inject;
import java.util.List;

/**
 * @Description:
 * @Author: 李钟奇
 * @Date: 2021/9/30 14:55
 */
@Async
@UrlContext("video")
public class VideoLinkService {

    @Inject
    WeiBoService weiBoService;

    @GetAction("douYin")
    public String douYin(String url, @DefaultValue("1") String type) {
        switch (type) {
            case "1":
                break;
            case "2":
                break;
        }

        return "";
    }

    @GetAction("list")
    public List<WeiBo> getList() {
        return weiBoService.getList();
    }

}
